package masml2jade;

import java.util.Hashtable;

public class Action {
	private Hashtable<String, Condition> pre_conditions = new Hashtable<String, Condition>();
	private Hashtable<String, Condition> pos_conditions = new Hashtable<String, Condition>();
	
	// Pre-conditions
	public Condition getPreCondition(String key) {
		return pre_conditions.get(key);
	}
	public void addPreCondition(String key, Condition condition) {
		pre_conditions.put(key, condition);
	}
	public Condition removePreCondition(String key) {
		return pre_conditions.remove(key);
	}
	
	// Pos-conditions
	public Condition getPosCondition(String key) {
		return pos_conditions.get(key);
	}
	public void addPosCondition(String key, Condition condition) {
		pos_conditions.put(key, condition);
	}
	public Condition removePosCondition(String key) {
		return pos_conditions.remove(key);
	}
	
	public void execute(Environment env, Object[] params){
		
	}
}
